<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmAbstractMultiPageItemModel.cpp -->
  <title>QCtmAbstractMultiPageItemModel Class | QCustomUi 1.10.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">QCustomUi 1.10.0</a></li>
<li><a href="index.html">QCustomUi</a></li>
<li>QCtmAbstractMultiPageItemModel</li>
<li id="buildversion">QCustomUi 1.10.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QCtmAbstractMultiPageItemModel Class</h1>
<!-- $$$QCtmAbstractMultiPageItemModel-brief -->
<p>分页 Model 基类. <a href="#details">More...</a></p>
<!-- @@@QCtmAbstractMultiPageItemModel -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;QCtmAbstractMultiPageItemModel.h&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="https://doc.qt.io/qt/qabstractitemmodel.html">QAbstractItemModel</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qctmabstractmultipagetablemodel.html">QCtmAbstractMultiPageTableModel</a></p>
</td></tr></table></div>
<ul>
<li><a href="qctmabstractmultipageitemmodel-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#QCtmAbstractMultiPageItemModel">QCtmAbstractMultiPageItemModel</a></b>(QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#dtor.QCtmAbstractMultiPageItemModel">~QCtmAbstractMultiPageItemModel</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#currentPage">currentPage</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#offset">offset</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#pageCount">pageCount</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#pageRowCount">pageRowCount</a></b>() const</td></tr>
</table></div>
<h2 id="public-slots">Public Slots</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#next">next</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#prev">prev</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#setCurrentPage">setCurrentPage</a></b>(int <i>page</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#setPageRowCount">setPageRowCount</a></b>(int <i>rowCount</i>)</td></tr>
</table></div>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#currentPageChanged">currentPageChanged</a></b>(int <i>page</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractmultipageitemmodel.html#pageCountChanged">pageCountChanged</a></b>(int <i>count</i>)</td></tr>
</table></div>
<!-- $$$QCtmAbstractMultiPageItemModel-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@QCtmAbstractMultiPageItemModel -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmAbstractMultiPageItemModel[overload1]$$$QCtmAbstractMultiPageItemModelQObject* -->
<h3 class="fn" id="QCtmAbstractMultiPageItemModel">QCtmAbstractMultiPageItemModel::<span class="name">QCtmAbstractMultiPageItemModel</span>(<span class="type"><a href="https://doc.qt.io/qt/qobject.html#QObject">QObject</a></span> *<i>parent</i> = nullptr)</h3>
<p>构造函数 <i>parent</i>.</p>
<!-- @@@QCtmAbstractMultiPageItemModel -->
<!-- $$$currentPageChanged[overload1]$$$currentPageChangedint -->
<h3 class="fn" id="currentPageChanged"><code>[signal] </code><span class="type">void</span> QCtmAbstractMultiPageItemModel::<span class="name">currentPageChanged</span>(<span class="type">int</span> <i>page</i>)</h3>
<p>当前页面 <i>page</i> 改变时发送该信号.</p>
<p><b>See also </b><a href="qctmabstractmultipageitemmodel.html#setCurrentPage">setCurrentPage</a> and <a href="qctmabstractmultipageitemmodel.html#currentPage">currentPage</a>.</p>
<!-- @@@currentPageChanged -->
<!-- $$$next[overload1]$$$next -->
<h3 class="fn" id="next"><code>[virtual slot] </code><span class="type">void</span> QCtmAbstractMultiPageItemModel::<span class="name">next</span>()</h3>
<p>转到下一页.</p>
<p><b>See also </b><a href="qctmabstractmultipageitemmodel.html#prev">prev</a>.</p>
<!-- @@@next -->
<!-- $$$pageCountChanged[overload1]$$$pageCountChangedint -->
<h3 class="fn" id="pageCountChanged"><code>[signal] </code><span class="type">void</span> QCtmAbstractMultiPageItemModel::<span class="name">pageCountChanged</span>(<span class="type">int</span> <i>count</i>)</h3>
<p>页面数量 <i>count</i> 改变时发送该信号.</p>
<!-- @@@pageCountChanged -->
<!-- $$$prev[overload1]$$$prev -->
<h3 class="fn" id="prev"><code>[virtual slot] </code><span class="type">void</span> QCtmAbstractMultiPageItemModel::<span class="name">prev</span>()</h3>
<p>转到上一页.</p>
<p><b>See also </b><a href="qctmabstractmultipageitemmodel.html#next">next</a>.</p>
<!-- @@@prev -->
<!-- $$$setCurrentPage[overload1]$$$setCurrentPageint -->
<h3 class="fn" id="setCurrentPage"><code>[virtual slot] </code><span class="type">void</span> QCtmAbstractMultiPageItemModel::<span class="name">setCurrentPage</span>(<span class="type">int</span> <i>page</i>)</h3>
<p>设置当前页 <i>page</i>.</p>
<p><b>See also </b><a href="qctmabstractmultipageitemmodel.html#currentPage">currentPage</a>.</p>
<!-- @@@setCurrentPage -->
<!-- $$$setPageRowCount[overload1]$$$setPageRowCountint -->
<h3 class="fn" id="setPageRowCount"><code>[virtual slot] </code><span class="type">void</span> QCtmAbstractMultiPageItemModel::<span class="name">setPageRowCount</span>(<span class="type">int</span> <i>rowCount</i>)</h3>
<p>设置每页的行数量 <i>rowCount</i>.</p>
<p><b>See also </b><a href="qctmabstractmultipageitemmodel.html#pageRowCount">pageRowCount</a>.</p>
<!-- @@@setPageRowCount -->
<!-- $$$~QCtmAbstractMultiPageItemModel[overload1]$$$~QCtmAbstractMultiPageItemModel -->
<h3 class="fn" id="dtor.QCtmAbstractMultiPageItemModel"><code>[virtual] </code>QCtmAbstractMultiPageItemModel::<span class="name">~QCtmAbstractMultiPageItemModel</span>()</h3>
<p>析构函数.</p>
<!-- @@@~QCtmAbstractMultiPageItemModel -->
<!-- $$$currentPage[overload1]$$$currentPage -->
<h3 class="fn" id="currentPage"><span class="type">int</span> QCtmAbstractMultiPageItemModel::<span class="name">currentPage</span>() const</h3>
<p>返回当前页面.</p>
<p><b>See also </b><a href="qctmabstractmultipageitemmodel.html#setCurrentPage">setCurrentPage</a>.</p>
<!-- @@@currentPage -->
<!-- $$$offset[overload1]$$$offset -->
<h3 class="fn" id="offset"><span class="type">int</span> QCtmAbstractMultiPageItemModel::<span class="name">offset</span>() const</h3>
<p>返回数据偏移量，即首行在所有数据中的位置.</p>
<!-- @@@offset -->
<!-- $$$pageCount[overload1]$$$pageCount -->
<h3 class="fn" id="pageCount"><code>[pure virtual] </code><span class="type">int</span> QCtmAbstractMultiPageItemModel::<span class="name">pageCount</span>() const</h3>
<p>返回页面数量.</p>
<!-- @@@pageCount -->
<!-- $$$pageRowCount[overload1]$$$pageRowCount -->
<h3 class="fn" id="pageRowCount"><span class="type">int</span> QCtmAbstractMultiPageItemModel::<span class="name">pageRowCount</span>() const</h3>
<p>返回每页的行数量.</p>
<p><b>See also </b><a href="qctmabstractmultipageitemmodel.html#setPageRowCount">setPageRowCount</a>.</p>
<!-- @@@pageRowCount -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
